package wdt_qf.service;


import wdt_qf.entity.qf.common.ResultData;
import wdt_qf.entity.qf.pro.XF_RetailPostPro;
import wdt_qf.entity.wdt.WdtSaleBackBillRes;
import wdt_qf.entity.wdt.WdtSaleBillRes;

import java.util.List;

public interface QfRetailsBillService {
    //controller用到的方法。
    ResultData addRetailsBillToQianFang(WdtSaleBillRes wdtSaleBillRes);
    //controller用到的方法。
    ResultData addRetailsBillToQianFang2(WdtSaleBillRes wdtSaleBillRes);

    //TODO 零售单过账
    void auditingRetailBill(XF_RetailPostPro dto);

    //TODO 零售单过账(根据零售单Id)
    ResultData auditingRetailBillByBillId(int billId);

    //  TODO  根据单据编号和门店id查询单据是否存在
    boolean billIfExistByCodeAndPosId(String billCode, int posId);


    ResultData addRetailsBackBillToQianFang(List<WdtSaleBackBillRes.ResponseBean.StockinListBean> retailBackBillList);
}
